package ckw.gui.wizards;

import java.util.ArrayList;

import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;

import ckw.database.OKW;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.layout.GridData;

/**
 * @author DoomThrower
 *
 */
public class WzdConfigurationPg3 extends WizardPage {
	private Composite container;
	private Text txtAdresIp;

	public WzdConfigurationPg3() {
		super("Krok 3.");
		setTitle("Krok 3.");
		setDescription("Prosze podac adres IP CKW.");
	}

	public void createControl(Composite parent) {
		Composite container = new Composite(parent, SWT.NULL);
		setControl(container);
		container.setLayout(new GridLayout(2, false));
		
		Label lblAdresIp = new Label(container, SWT.NONE);
		lblAdresIp.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
		lblAdresIp.setText("Adres IP:");
		
		txtAdresIp = new Text(container, SWT.BORDER);
		txtAdresIp.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));
	}


	public String getServerIPAddress() {
		return txtAdresIp.getText();
	}

}
